package com.black.gateway.feign;

import com.black.gateway.web.ApiResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Map;
import java.util.Set;

@FeignClient(name = "platform-service")
public interface PlatformServiceApi {

    @GetMapping("/permission/getAllRouterPermissions")
    ApiResponse<Map<String, Set<Long>>> getAllRouterPermissions();

    @GetMapping("/permission/getAllWhitePath")
    ApiResponse<Set<String>> getAllWhitePath();

    @GetMapping("/shareUser/getUserHavingRoleId/{userId}")
    ApiResponse<Set<Long>> getShareUserHavingRoleIdByUserId(@PathVariable("userId") Long userId);
    
}
